package com.ap.core.domain;

import org.hibernate.annotations.TypeDef;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * User: Rohit.Dixit
 */
@Entity
@Table(name = "T_EXCEPTION_TYPE")
@AttributeOverride(name = "id", column = @Column(name = "ERROR_CODE"))
@TypeDef(name = "id", typeClass = String.class)
public class ExceptionType extends Identifiable<String> {

    private static final long serialVersionUID = 6332097070822525085L;

    private ExceptionType() {
    }


    @Column(name = "ERROR_DESCRIPTION")
    private String errorDescription;


    public String getErrorDescription() {
        return errorDescription;
    }


}
